home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 749 < prev    next >
Encoding:
Text File  |  1996-08-05  |  3.3 KB  |  70 lines

  1. Path: news.mountain.net!usenet
  2. From: gene_heskett@wvlink.mpl.com (Gene Heskett)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: File Protection bits - again -
  5. Date: 11 Jan 1996 06:56:32 GMT
  6. Organization: MountainNet, Inc. Morgantown WV 800.444.1458
  7. Message-ID: <2962.6584T98T1106@wvlink.mpl.com>
  8. NNTP-Posting-Host: slip3.mpl.com
  9. X-Newsreader: THOR 2.22 (Amiga;TCP/IP)
  10.  
  11. Hello all; First, let me apologise for the excess bandwidth here, but a
  12. full explanation is always quicker in the long run.
  13.  
  14. I have a bit of a connundrum regarding the XPR library specification.
  15.  
  16. I have recently been involved with porting the Omen Tech/Chuck Forsburg
  17. zmodem code version 3.36, which normally runs on unix or similar machines
  18. to the OS9 level two operating system.  The zmodem protocol specifies that
  19. the protection bits of the file being sent are to be sent in standard unix
  20. format, and that any translations needed to achieve this are up to the
  21. platform chosen.
  22.  
  23. This is not the first time I've been in on this, I helped on the 3.24 port
  24. also, doing the crc calcs in asm, so I'm moderately familiar with it.  Its
  25. all in C except the crc stuffs I did, 30x faster than a clib call for the
  26. same thing.
  27.  
  28. Imagine my surprise when I hooked up a null modem to my Amiga, figuring I
  29. could use the Amiga xprzmodem.library as a test target.  Yeah, sure.  The
  30. files attributes or permissions, protection bits, whatever you want to call
  31. them are for the most part thrown away by the Amiga zmodem.  After putzing
  32. around with Olaf's version 2.58 for a week doing byte by byte traces, and
  33. finding that the target os9 machines code was setting the perms exactly as
  34. the amiga told it to.
  35.  
  36. Then I finally came across a comment someplace in the amiga's library
  37. source that said "the XPR protocol doesn't have access to the protection
  38. bits in the specification!"
  39.  
  40. I printed out a copy of the xpr spec, and damned if that comment isn't
  41. correct.  Suffice to say, I did finally find a library that at least fakes
  42. it well enough to test against in version 3.51 by another gentleman. At
  43. least I didn't have to run "protect filename rewd" even before I deleted
  44. the dummy test file.
  45.  
  46. So get to the question will ya!
  47.  
  48. Ok, ok - here it is: Is there *any legal way* for an xpr library to reach
  49. over into the dos.library or where ever and extract that 16 bit protection
  50. bits integer so that it can actually meet the protocol spec?
  51.  
  52. In the target OS9 machines filesystem, such information is readily
  53. available, and I was amazed that its almost considered privy by amigados.
  54. What I have in mind, since I have that 3.51 source, is to see if it can
  55. indeed be "fixed" and therefore rendered totally unix and network
  56. compatible.  It also does a good job of explaining why I couldn't download
  57. using my ISP's VAX version of sz, the error rates were killers.  I had
  58. those ftn and xpr-2001 extensions turned on, and they aren't zmodem strict.
  59. Between 2 Amiga's fine, but not to the outside world. Not to mention the
  60. VAX vesion of zmodem is prolly 1.0, the last PD version!
  61.  
  62. Ideas, sample functions anybody? All ideas gratefully investigated.
  63.  
  64. /*            Gene Heskett          |  These opinions are NOT to be  */
  65. /*  CE @ WDTV Weston/Clarksburg WV  |  confused with the official    */
  66. /*  <gene_heskett@wvlink.mpl.com>   |  WDTV managment views          */
  67. #include <std.disclaimer>
  68.  
  69.  
  70.